package com.itheima.web.mapper.pms;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.vo.pms.PmsSkuStock;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PmsSkuStockMapper extends BaseMapper<PmsSkuStock> {
    @Select("select * from pms_sku_stock where product_id=#{id}")
    List<PmsSkuStock> getByProductId(Integer id);
}
